home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kdeprint / kprintdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  2.5 KB  |  89 lines

  1. /*
  2.  *  This file is part of the KDE libraries
  3.  *  Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
  4.  *
  5.  *  This library is free software; you can redistribute it and/or
  6.  *  modify it under the terms of the GNU Library General Public
  7.  *  License version 2 as published by the Free Software Foundation.
  8.  *
  9.  *  This library is distributed in the hope that it will be useful,
  10.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  *  Library General Public License for more details.
  13.  *
  14.  *  You should have received a copy of the GNU Library General Public License
  15.  *  along with this library; see the file COPYING.LIB.  If not, write to
  16.  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17.  *  Boston, MA 02110-1301, USA.
  18.  **/
  19.  
  20. #ifndef KPRINTDIALOG_H
  21. #define KPRINTDIALOG_H
  22.  
  23. #if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
  24. #warning internal header, do not use except if you are a KDEPrint developer
  25. #endif
  26.  
  27. #include <kdialog.h>
  28. #include <qptrlist.h>
  29. #include <kdeprint/kpreloadobject.h>
  30.  
  31. class KPrinter;
  32. class KPrintDialogPage;
  33.  
  34. /**
  35.  * @internal
  36.  * This class is internal to KDEPrint and is not intended to be
  37.  * used outside it. Please do not make use of this header, except
  38.  * if you're a KDEPrint developer. The API might change in the
  39.  * future and binary compatibility might be broken.
  40.  */
  41. class KDEPRINT_EXPORT KPrintDialog : public KDialog, public KPReloadObject
  42. {
  43.     Q_OBJECT
  44. public:
  45.     KPrintDialog(QWidget *parent = 0, const char *name = 0);
  46.     ~KPrintDialog();
  47.  
  48.     void setFlags(int f);
  49.     void setDialogPages(QPtrList<KPrintDialogPage> *pages);
  50.     void enableDialogPage( int index, bool flag = true );
  51.     KPrinter* printer() const;
  52.  
  53.     static KPrintDialog* printerDialog(KPrinter*, QWidget*, const QString& caption = QString::null, bool forceExpand = false);
  54.  
  55. signals:
  56.     void printRequested(KPrinter*);
  57.  
  58. protected slots:
  59.     void slotPrinterSelected(int);
  60.     void slotProperties();
  61.     void slotSetDefault();
  62.     void slotOptions();
  63.     virtual void done(int);
  64.     void slotWizard();
  65.     void slotExtensionClicked();
  66.     void slotToggleFilter(bool);
  67.     void slotHelp();
  68.     void slotOutputFileSelected(const QString&);
  69.     void slotUpdatePossible( bool );
  70.     void slotOpenFileDialog();
  71.  
  72. protected:
  73.     bool checkOutputFile();
  74.     void enableSpecial(bool on);
  75.     void enableOutputFile(bool on);
  76.     void setOutputFileExtension(const QString&);
  77.     void reload();
  78.     void configChanged();
  79.     void expandDialog(bool on = true);
  80.     void initialize( KPrinter* );
  81.     void init();
  82.  
  83. protected:
  84.     class KPrintDialogPrivate;
  85.     KPrintDialogPrivate    *d;
  86. };
  87.  
  88. #endif
  89.